﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindowsFormsApplication1
{
    public class Chatmessage
    {
        private Boolean client { get; set; }
        private String Message { get; set; }

        public Chatmessage(Boolean client, String message)
        {
            this.client = client;
            this.Message = message;
        }

        public string toString()
        {
            if (client == true)
            {
                return "Client:   " + Message;
            }
            else
            {
                return "Physician:  " + Message;
            }
        }
    }
}
